<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var f=['banana','apple','mango'];
			f.sort();
			console.log(f);
			//reverse
			f.reverse();
			console.log(f);
			
			var n=[3,51,23,44,24];
			n.sort(
				function(a,b){
					return a-b;
				}
			);
			console.log(n);
		</script>
	</body>
</html>
